{{--使用参考：https://v4.bootcss.com/docs/components/modal/--}}
<div class="modal fade  {{$class}}" id="{{ $id }}" tabindex="-1" aria-labelledby="{{ $id }}Label" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable jsp-scroller">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="{{ $id }}Label">{{$title}}</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>

            <?php
            $text_color = "";
            $text_icon = "";
            switch ($textStyle) {
                case 'success':
                    $text_color = "text-success";
                    $text_icon = '<i class="fa-solid fa-circle-check"></i>';
                    break;
                case 'error':
                    $text_color = "text-danger";
                    $text_icon = '<i class="fa-solid fa-circle-xmark"></i>';
                    break;
            }
            ?>
            <div class="modal-body {{$text_color}} ">
                {!!$text_icon!!} {!! $message !!}
            </div>
            @if($showFooter)
                <div class="modal-footer">
                    <button type="button" class="btn btn-light"
                            data-dismiss="modal">{{$cancelText}}</button>
                    <button type="button" class="btn btn-primary ok">{{$okText}}</button>
                </div>
            @endif
        </div>
    </div>
</div>
